:root {
  --primary-color: #6366f1;
  --primary-hover: #4f46e5;
  --secondary-color: #0ea5e9;
  --bg-color: #0f172a;
  --card-bg: #1e293b;
  --card-bg-darker: #151e2d;
  --text-color: #f8fafc;
  --text-secondary: #94a3b8;
  --border-radius: 12px;
  --transition-speed: 0.3s;
  --box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.app-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-color) 0%, #0f1c3d 100%);
  color: var(--text-color);
  gap: 20px;
  z-index: 1000;
}

.app-loading .ant-spin-dot-item {
  background-color: var(--primary-color);
}

.app-loading p {
  margin-top: 10px;
  font-size: 16px;
  letter-spacing: 1px;
  animation: pulse 2s infinite;
}

.app-layout {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--bg-color) 0%, #0f1c3d 100%);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.app-content {
  padding: 30px 20px;
  animation: fadeIn 0.5s ease-out;
}

.main-container {
  display: flex;
  flex-direction: row;
  gap: 30px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px;
  position: relative;
}

.main-container::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  filter: blur(40px);
}

.main-container::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  filter: blur(40px);
}

.left-panel {
  flex: 1;
  min-width: 350px;
  transition: all var(--transition-speed);
}

.right-panel {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: all var(--transition-speed);
}

.generate-animation {
  animation: pulse 2s infinite;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
  }
}

/* 响应式设计 */
@media (max-width: 992px) {
  .main-container {
    gap: 20px;
    padding: 5px;
  }
  
  .left-panel {
    min-width: 300px;
  }
}

@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
  }
  
  .left-panel,
  .right-panel {
    width: 100%;
  }
  
  .app-content {
    padding: 15px 10px;
  }
}